-- GENERATED SPELL FOR [Syndicate Spy] --


function spell0_2242(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2242', 668, 1)
end

function Sorts_2242(pUnit, Event)
local choix_sorts_2242 = math.random(0, 0)
if choix_sorts_2242 == 0 then
pUnit:RegisterEvent('spell0_2242', 1, 1)
end
end

function mob2242_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2242', math.random(1500, 3000), 1)
end

function mob2242_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2242_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2242_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2242, 1, 'mob2242_Action')
RegisterUnitEvent(2242, 2, 'mob2242_Leave')
RegisterUnitEvent(2242, 3, 'mob2242_Kill')
RegisterUnitEvent(2242, 4, 'mob2242_Die')
